<?php

https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md

$a =  strcmp('RItesh','Ritesh');
var_dump($a);exit;
echo get_url();

function get_url()
{
  $url = "http://$_SERVER[HTTP_HOST]";
  $request_uri = trim($_SERVER['REQUEST_URI'],'/');
  $request_uri_arr = explode('/',$request_uri);
  $url = "http://$_SERVER[HTTP_HOST]/$request_uri_arr[0]";
  return $url;
}

